/* 
 * Copyright [2017] [Alex/LiBo(libo2dev.aliyun.com/alex.link@foxmail.com)]
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.hyts.bmsp.record;

/**  
 * @Title BaseQuery.java  
 * @Package com.hyts.bmsp.record  
 * @Description 基本信息操作查询类
 * @author LiBo/Alex  
 * @date 2017年12月24日  
 * @version V1.0  
 */
public class BaseQuery {

	
	private String sql;
	
	private String tableName;
	
	private Object[] params;
	
	/**  
	 * @return sql  
	 */
	public String getSql() {
		return sql;
	}

	/**  
	 * @param paramtheparamthe{bare_field_name} to set  
	 */
	public void setSql(String sql) {
		this.sql = sql;
	}

	/**  
	 * @return tableName  
	 */
	public String getTableName() {
		return tableName;
	}

	/**  
	 * @param paramtheparamthe{bare_field_name} to set  
	 */
	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	/**  
	 * @return params  
	 */
	public Object[] getParams() {
		return params;
	}

	/**  
	 * @param paramtheparamthe{bare_field_name} to set  
	 */
	public void setParams(Object[] params) {
		this.params = params;
	}

	/**  
	 * 创建一个新的实例-构造器 BaseQuery.  
	 * @param sql
	 * @param tableName
	 * @param params  
	 */ 
	public BaseQuery(String sql, String tableName, Object[] params) {
		super();
		this.sql = sql;
		this.tableName = tableName;
		this.params = params;
	}

	/**  
	 * 创建一个新的实例-构造器 BaseQuery.    
	 */ 
	public BaseQuery() {
		super();
	}

	/**  
	 * 创建一个新的实例-构造器 BaseQuery.  
	 * @param sql
	 * @param tableName  
	 */ 
	public BaseQuery(String sql, String tableName) {
		super();
		this.sql = sql;
		this.tableName = tableName;
	}
	
}
